<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Bom操作对象</title>
</head>
<body>
    <div id="d1">
        onload事件
    </div>
</body>
    <script>
        window.onload = function (){
            var obj = document.getElementById("d1")
            console.log(obj.innerHTML)
        }
    </script>
</html>